﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BUS;
namespace GUI
{
    public partial class Main : Window
    {
        public Main()
        {
            InitializeComponent();
        }              
              

        private void sảnPhẩmToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FormDSSanPham frm = new FormDSSanPham();
            frm.MdiParent = this;
            frm.Show();
        }

        private void nhânViênToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FormDSNhanVien frm = new FormDSNhanVien();
            frm.MdiParent = this;
            frm.Show();
        }

        private void đặtHàngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormDSDatHang frm = new FormDSDatHang();
            frm.MdiParent = this;
            frm.Show();
        }

        private void bánHàngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            HoaDonGUI frm = new HoaDonGUI();
            frm.MdiParent = this;
            frm.Show();
        }

        private void điểmThànhViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBaocaodiemthanhvien frm = new FormBaocaodiemthanhvien();
            frm.MdiParent = this;
            frm.Show();
        }       

        private void nhậpXuấtTồnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormNhapXuatTon frm = new FormNhapXuatTon();
            frm.MdiParent = this;
            frm.Show();
        }

        private void theoDõiBánHàngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormTheoDoiBH frm = new FormTheoDoiBH();
            frm.MdiParent = this;
            frm.Show();

        }

        private void doanhThuBánHàngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBCDoanhThu frm = new FormBCDoanhThu();
            frm.MdiParent = this;
            frm.Show();
        }

        private void thoátToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void Main_Load(object sender, EventArgs e)
        {
            SetBackGroundColorOfMDIForm();
            chucnang frm = new chucnang();
            frm.MdiParent=this;
            frm.Show();
            
        }

        

       
       
    }
}
